package com.example.qy160demo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "统一的json对象") // 响应类说明
public class Result<T> {
    @ApiModelProperty(value = "状态码 200成功 500服务器错误")// 响应参数说明
    private Integer code;
    @ApiModelProperty(value = "消息内容")
    private String msg;
    @ApiModelProperty(value = "响应的数据")
    private T data;
}
